package com.yami.shop.bean.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 个人持仓
 *
 * @author FrozenWatermelon
 * @date 2020-10-28 15:27:24
 */
@Schema(description = "持仓")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PersonNft implements Serializable {
    private static final long serialVersionUID = 1L;

    private String id;

    private String denomId;

    private String tokenId;

    private Integer status;

    private String remark;

    private String userId;

    private String shortUri;

    private String dawNameId;

    private String dawProductCode;

    private Long productId;

    private Boolean selectTransfer;

    private String selectTransferMsg;

    private String dawHash;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    protected Date createTime;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    protected Date updateTime;

    private String dawName;

    private String shortUrl;

    @TableField(exist = false)
    @Schema(description = "持有数量")
    private Integer holdNum;

    private String channelCode;

    private String chainCode;


    @TableField(exist = false)
    private Long isRed;
}
